package cn.shop.cloud.common;


import lombok.Getter;
import lombok.Setter;

/**
 * @program: work
 * @ClassName CodeMsg
 * @description: 不同的业务场景  返回的msg code均不相同  member good seckill
 * @author: 李尧坤
 * @create: 2024−12-19 17:21
 * @Version 1.0
 **/
@Getter
@Setter
public class CodeMsg {

    private Integer code;
    private String msg;

    public CodeMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static final CodeMsg ACCOUNT_EMPTY_ERROR=new CodeMsg(50001,"账号不能为空");
    public static final CodeMsg PASSWORD_EMPTY_ERROR=new CodeMsg(50002,"密码不能为空");
}
